const main = require('../main/main');

describe('main()', () => {
    it("Random number's length",function(){
        let result=main.getRandom();
        expect(result.length).toEqual(4);
    });
    
    it("1234 and 1234",function(){
        let result=main.check(1234,1234);
        expect(result).toEqual("4A0B");
    })

    it("1234 and 4321",function(){
        let result=main.check(1234,4321);
        expect(result).toEqual("0A4B");
    })

    it("4",function(){
        let result=main.main();
        expect(result).toEqual("4A0B");
    })

});